<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>弹幕效果</title>
    <style>
      *{
        margin: 0;
        padding: 0;
      }
      body{
        padding: 50px;
      }
      #barrage {
        position: relative;
        width: 600px;
        height: 300px;
        z-index: 2;
        background-color: #f58f98;
      }
      #inputTo {
        margin-top: 5px;
        padding-left: 30px;
      }
      #tuto{
        position: absolute;
        left: 0;
        top: 0;
        border: 1px solid;
        z-index: 11;
      }
      #barrage video{
        position: absolute;
        z-index: 1;
      }
     
    </style>
      <script src="./index.js" defer></script>
  </head>
  <body style="background-color: #000;">
    <div id="barrage">
      <video src="./test.mp4" controls width="100%" height="100%"></video>
      <canvas id="tuto"></canvas>
    </div>
    
    <div id="inputTo">
      <input type="text" name="" id="inputButt" placeholder="请输入文字" />
      <button id="btn">点击发送弹幕</button>
    </div>
    <img
    style="width: 700px;"
  src="https://api.vvhan.com/api/wallpaper/pcGirl"
  alt="电脑分辨率随机福利姬美图合集"
/>
<script src="https://api.vvhan.com/api/script/snow"></script>
  </body>
</html>
